package com.wk.utils;

public class OpenFlag {

    //开关关闭或者没有开关放行，开关打开且开关是1，打开
    //查询数据库
    public static Boolean aBoolean(String type,String type1){
        String flag= getFlag(type,type1);
        if (flag!=null&&"1".equals(flag)){
            return true;
        }
         return false;
    }

    private static String getFlag(String type, String phone) {
        String sql="select status from table1 where type=type and value=phone";
        //查询库
        return "1";
    }

    public static void main(String[] args) {
        Boolean aBoolean = aBoolean("1", "2");

        System.out.println("aBoolean = " + aBoolean);
    }

}
